package org.wmq.travelagency02.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.wmq.travelagency02.model.DTO.HistoryMessageQueryDTO;
import org.wmq.travelagency02.model.Entity.Message;

import java.util.List;

public interface MessageService extends IService<Message> {
    Page<Message> getMessages(Long senderId, Long receiverId);

    Page<Message> getHistoryMessages(HistoryMessageQueryDTO historyMessageQueryDTO);
}
